import 'package:flutter/material.dart';
import 'package:flutter_xiaomi/app/tools/keepAliveWrapper.dart';

import 'package:get/get.dart';

import '../controllers/home_controller.dart';

class HomeView extends GetView<HomeController> {
  const HomeView({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return KeepAliveWrapper(
        child:Scaffold(
            appBar: AppBar(
              title: const Text('首页'),
              centerTitle: true,
            ),
            body: ListView(
              children:const [
                ListTile(title: Text("11111")),
                ListTile(title: Text("22")),
                ListTile(title: Text("33")),
                ListTile(title: Text("44")),
                ListTile(title: Text("55")),
                ListTile(title: Text("66")),
                ListTile(title: Text("77")),
                ListTile(title: Text("8888")),
                ListTile(title: Text("9999")),
                ListTile(title: Text("1010")),
                ListTile(title: Text("1111")),
                ListTile(title: Text("121212")),
                ListTile(title: Text("11111")),
                ListTile(title: Text("22")),
                ListTile(title: Text("33")),
                ListTile(title: Text("44")),
                ListTile(title: Text("55")),
                ListTile(title: Text("66")),
                ListTile(title: Text("77")),
                ListTile(title: Text("8888")),
                ListTile(title: Text("9999")),
                ListTile(title: Text("1010")),
                ListTile(title: Text("1111")),
                ListTile(title: Text("121212"))
              ],
            )
        )
    );
  }
}
